from gi.repository import Gtk

class MacroButton(Gtk.Button):
  macro = ''
  label = ''
  def __init__(self, label, macro, *args, **kwargs):
    self.macro = macro
    super(MacroButton, self).__init__(label, args, kwargs)

  def getMacro(self):
    return self.macro

  def __str__(self):
      return self.get_label()